package com.example.shuiyin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("plans")
public class Plan {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;           // 套餐名称
    private String description;    // 套餐描述
    private BigDecimal price;      // 套餐价格
    
    @TableField("discount_price")
    private BigDecimal discountPrice; // 折扣价格
    
    @TableField("billing_cycle")
    private String billingCycle;   // 计费周期(月, 年)
    
    private Integer quota;         // 配额数量
    private String features;       // 特性(JSON格式)
    
    @TableField("is_active")
    private Boolean isActive;      // 是否启用
    
    @TableField("sort_order")
    private Integer sortOrder;     // 排序
    
    @TableField("created_at")
    private LocalDateTime createdAt;
    
    @TableField("updated_at")
    private LocalDateTime updatedAt;
} 